<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    <title>地图显示</title>
    <style>
        html,
        body,
        #container {
          width: 100%;
          height: 100%;
        }
    </style>
</head>
<body>
<div id="container"></div>
<!-- 加载地图JSAPI脚本 -->
<script src="https://webapi.amap.com/maps?v=1.4.12&key=264e1e19220c214292f89e3e6225098f"></script>
<script>
    var map = new AMap.Map('container', {
        resizeEnable: true, //是否监控地图容器尺寸变化
        zoom:11, //初始化地图层级
        center: [117.067963,36.681753] //初始化地图中心点
    });
    var marker = new AMap.Marker({
        icon: "/img/man_2.gif",
        position: [117.08676,36.683198]
    });
    var polygonPath = [
        new AMap.LngLat(117.064616,36.688017),
        new AMap.LngLat(117.073542,36.678655),
        new AMap.LngLat(117.085816,36.677623)
    ];
    var polygon = new AMap.Polygon({
        path: polygonPath
    });
    map.add(marker);
    map.add(polygon);
</script>
</body>
</html>